package org.jeecg.chase.common.result;

import java.util.ArrayList;
import java.util.List;

/**
 * @author leikai
 * @version 1.0
 * @description: 列表返回对象
 * @date 2021/07/23/0023 15:49
 */
public class ListResult<T> extends BaseResult {

    private List<T> rows = new ArrayList<T>();

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public ListResult(int status, String code, String msg) {
        super(status, code, msg);
    }

    public ListResult(int status, String code, String msg, List<T> rows) {
        this(status, code, msg);
        this.rows = rows;
    }

    public ListResult(List<T> rows) {
        this.rows = rows;
    }
}
